package DB_Manage;

import java.util.Date;

/**
 * This class is a basic data object for schedule item data.
 * @author Johann Jungbauer
 */
public class ScheduleItemData {
    private static String _UserID;
    private static String _BillingSiteRef;
    private static Date _LastRunDate;
    private static Date _LastStatementDate;
    private static double _LastStatementTotal;
    
    public ScheduleItemData(String userID, String billingRef, Date lastRunDate,
            Date lastStatementDate, double lastStatementTotal)
    {
        setUserID(userID);
        setBillingSiteRef(billingRef);
        setLastRunDate(lastRunDate);
        setLastStatementDate(lastStatementDate);
        setLastStatementTotal(lastStatementTotal);
    }
    
    public static String getUserID()
    {
        return _UserID;
    }
    public static String getBillingSiteRef()
    {
        return _BillingSiteRef;
    }
    public static Date getLastRunDate()
    {
        return _LastRunDate;
    }
    public static Date getLastStatementDate()
    {
        return _LastStatementDate;
    }
    public static double getLastStatementTotal()
    {
        return _LastStatementTotal;
    }
    
    private static void setUserID(String usr)
    {
        _UserID = usr;
    }
    private static void setBillingSiteRef(String billRef)
    {
        _BillingSiteRef = billRef;
    }
    private static void setLastRunDate(Date date)
    {
        _LastRunDate = date;
    }
    private static void setLastStatementDate(Date date)
    {
        _LastStatementDate = date;
    }
    private static void setLastStatementTotal(double val)
    {
        _LastStatementTotal = val;
    }
}
